package com.yazdankhah.beans;

import java.io.Serializable;

/**
 *
 * @author ahmad
 */
public class Ay implements Serializable {

  private static final long serialVersionUID = 1L;

  private Integer id;

  private String descr;


  public Ay() {
  }


  public Ay(Integer id) {
    this.id = id;
  }


  public Integer getId() {
    return id;
  }


  public void setId(Integer id) {
    this.id = id;
  }


  public String getDescr() {
    return descr;
  }


  public void setDescr(String descr) {
    this.descr = descr;
  }


  @Override
  public int hashCode() {
    int hash = 0;
    hash += (id != null ? id.hashCode() : 0);
    return hash;
  }


  @Override
  public boolean equals(Object object) {
    // TODO: Warning - this method won't work in the case the id fields are not set
    if (!(object instanceof Ay)) {
      return false;
    }
    Ay other = (Ay) object;
    if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
      return false;
    }
    return true;
  }


  @Override
  public String toString() {
    return "com.yazdankhah.dalweb.beans23456.Ay[ id=" + id + " ]";
  }
  
}
